package distributions;

import java.io.IOException;

public class Draw
{
  private UniformStream s;
  private double prob;

  public Draw(double paramDouble)
  {
    this.s = new UniformStream(0.0D, 1.0D);
    this.prob = paramDouble;
  }

  public Draw(double paramDouble, int paramInt)
  {
    this.s = new UniformStream(0.0D, 1.0D, paramInt);
    this.prob = paramDouble;
  }

  public Draw(double paramDouble, int paramInt, long paramLong1, long paramLong2)
  {
    this.s = new UniformStream(0.0D, 1.0D, paramInt, paramLong1, paramLong2);
    this.prob = paramDouble;
  }

  public boolean getBoolean()
    throws IOException
  {
    return this.s.getNumber() >= this.prob;
  }
}

/* Location:           /tmp/dlpjava/dlpjava.jar
 * Qualified Name:     distributions.Draw
 * JD-Core Version:    0.6.0
 */